#define _CRT_SECURE_NO_WARNINGS
#include"byy.h"
int main()
{
	int* p1, * p2, a, b;
	p1 = &a, p2 = &b;
	scanf("%d%d",p1,p2);
	if (*p1 < *p2)
	{
		p1 = &b;
		p2 = &a;
	}
	printf("%d %d", *p1, *p2);
	return 0;
}